package com.xhx.stream.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.xhx.stream.service.BusiService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@RequestMapping("/t")
@RestController
public class TestController {
	@Autowired
	private BusiService busiService;

	@GetMapping("/say")
	public String say(@RequestParam String content) {
		log.info("I receive {}", content);
		this.busiService.myMethod(content);
		return "I know";
	}

}
